<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div class="span12 box-content">
<c:if test="${user.superAdmin }">
	<form class="form-inline well" id="chooseScoreFilter_form">
		<div class="controls controls-row">
			<label>学院:</label>
			<select class="span2" style="display:inline;" name="college">
			  <c:forEach items="${colleges }" var="c">
			 	 <option value="${c.id }" ${c.id==clgId?"selected='selected'":""}>${c.name }</option>
			  </c:forEach>
			</select>
			<button type="button" id="chooseScoreFilter_go">前往</button>
		</div>
	</form>
	</c:if>
	<div class="span12">共有${scoreCount}条数据,${totalPage }页</div>
	<table class="table table-striped table-bordered" id="score_list_table">
		<thead>
		 <tr>
		 	<th>题目标题</th>
		 	<th>学生姓名</th>
		 	<th>指导教师</th>
		 	<th>指导教师成绩</th>
		 	<th>评阅人成绩</th>
		 	<th>答辩成绩</th>
		 	<th>总成绩</th>
		 </tr>
		</thead>
		<tbody>
		<c:forEach items="${scoreList }" var="s">
			<tr>
				<td>${s.project.name }</td>
				<td>${s.project.student.name }</td>
				<td>${s.project.teacher.name }</td>
				<td>${s.sy_score}</td>
				<td>${s.py_score }</td>
				<td>${s.db_score }</td>
				<td>${s.db_score+s.py_score+s.sy_score }</td>
			</tr> 
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination  pagination-centered"
			data-totalPage="${totalPage }" 
			data-currentPage="${page }" 
			data-url="<%=basePath%>admin/choose/showScoreList/${clgId }/{page}"
			style="display:none">
	</div>
	<div class="well">
		<button type="button" class="btn btn-primary" id="score_add_excel" data-target="#score_add_excel_box" data-toggle="modal" >
			<i class=" icon-plus icon-white"></i>  
			从excel导入题目列表
		</button>
		<a href="<%=basePath %>admin/choose/${clgId }/scoretList.xls" class="btn btn-success"  >
			<i class="  icon-download-alt icon-white"></i>  
			导出本学院成绩(Excel2003格式)
		</a>		
		<a href="<%=basePath %>admin/choose/${clgId }/scoretList.xlsx" class="btn btn-success" >
			<i class="  icon-download-alt icon-white"></i>  
			导出本学院成绩(Excel2007格式)
		</a>
	</div>
</div>
<!-- 批量导入 开始-->
<div class="modal hide fade" id="score_add_excel_box">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal">×</button>
		<h3>批量导入成绩</h3>
	</div>
	<div class="modal-body">
		<div id="score_add_excel_box_alert_container" ></div><br/>
		<span class="btn btn-success fileinput-button" id="score_add_excel_box_file">
			<span>选择文件</span>
			<input type="file" name="excel"  >
		</span>
		<span id="score_add_excel_box_file_name">未选择</span>
		<div class="progress progress-info progress-striped" style="margin-top: 3%;display:none" id="score_add_excel_box_progress">
				<div class="bar" style="width: 0%" ></div>
		</div>
	</div>
	<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal">取消</a>
		<a href="#" class="btn btn-primary" id="score_add_excel_box_confirm">确定</a>
	</div>
</div>
<!-- 批量导入 结束 -->